<template>
    <div>
        <div v-for="item of itemList" :key="item.id">
            <p class="ticket">
                <i class="icon"></i>
                {{item.title}}
            </p>
            <detail-items :items="item.children"></detail-items>
        </div>
    </div>
</template>
<script>
import DetailItems from "./Items";
export default {
  name: "DetailItem",
  props: {
    itemList: {
      type: Array
    }
  },
  components:{
      DetailItems
  },
  methods: {
      
  },
};
</script>
<style lang="scss" scoped>
.ticket{
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-left: 20px;
    padding: 6px;
}
.icon{
    width: 50px;
    height: 50px;
    display: inline-block;
    background: url("~@/assets/iconfont/detail.png") no-repeat;
    background-size: 37px;
    background-position-x: 18px;
    background-position-y: -33px;
    margin-right: 20px;
}
</style>
